<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<table border="1" cellspacing="0">
    <th>
    <td>用户ID</td>
    <td>订单ID</td>
    <td>订单价格</td>
    <td>订单生成时间</td>
    <td>订单修改时间</td>
    <td>查看订单详情</td>
    </th>
    <tr th:each="list:${listAll}">
        <td>详情</td>
        <td th:text="${list.getUserId()}"></td>
        <td th:text="${list.getOrderId()}"></td>
        <td th:text="${list.getOrderPrice()}"></td>
        <td th:text="${list.getCreateTime()}"></td>
        <td th:text="${list.getModifyTime()}"></td>
        <td>
            <form action="/listById" method="post">
                <input type="hidden" th:value="${list.getOrderId()}" name="id"/>
                <input type="submit" value="查看订单详情"/>
            </form>
        </td>
    </tr>
</table>

</body>
</html>